package com.waimai.controller;

import java.io.UnsupportedEncodingException;
import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.waimai.model.User;
import com.waimai.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {
	@Resource(name="userservice")
	private UserService userService;
	
	@RequestMapping("/user.htm")
	public String test(HttpServletRequest request) {
		List<User> list = userService.getAll();
		
		return "../test";
	}
}
